package com.flexycore.iphone.model;

import com.flexycore.iphone.view.ActivityIndicatorView;

/**
 * 
 * @author matthieu nicolazo
 * Runnable class playing the part of some activity.
 *
 */
public class Activity implements Runnable {
	/**
	 * Field
	 */
	private ActivityIndicatorView view;
	
	/**
	 * Constructor
	 * @param v
	 */
	public Activity(ActivityIndicatorView v){
		super();
		view = v;
	}
	
	public void run() {
		try {
			Thread.sleep(3000);
			view.stopActivity();
		} catch (InterruptedException e) { 
			System.out.println(e.getMessage()); 
		}
	}

}
